<div class="container comment">
  <form class="reply comment__form" method="post" action="/comments">
    <input name="postId" value="<%= post._id %>" hidden />
    <div class="field">
      <textarea name="content" class="comment__textarea" placeholder="写下你的评论"></textarea>
    </div>
    <div class="submit-wrap text-align-right">
      <input type="submit" class=" btn btn-primary 
      navbar-btn br-30 pt-6 pb-6  mt-30  bg-color-primary  bd-color-primary outline-none color-white" value="发表评论" />
    </div>
  </form>

  <h3 class="comment__title">全部评论</h3>

  <div class="comment__wrap">
    <% if(!comments || comments.length < 1) {%>
    <p class="text-align-center mt-50 mb-50 color-999">还没有人发表评论</p>
    <%} else {%>
    <% comments.forEach(function (comment) { %> <%- include('./comment-item.ejs',{comment})%> <% }) %>
    <%}%>
  </div>

</div>
